%h1
  Editing bundle_variations
- form_for(@bundle_variations) do |f|
  = f.error_messages
  %p
    = f.label :bundle_id
    %br
    = f.collection_select(:bundle_id, @bundles, :id, :name, {:include_blank => true})
  %p
    = f.label :frequency
    %br
    = f.select :frequency, @frequency, :include_blank => true
  %p
    = f.label :price
    %br
    = f.text_field :price
  %p
    = f.label :description
    %br
    = f.text_area :description
  %p
    = f.label :status
    %br
    = f.select :status, @statuses, :include_blank => true
  %p
    - @bundle_variations.build_trial_period unless @bundle_variations.trial_period
    = render :partial => 'trial_periods/form', :locals => {:ff => f}
  %p
    = f.submit 'Update'

= link_to 'Show', @bundle_variations
|
= link_to 'Back', bundle_variation_path
